package A1_4_Shopsystem;

// 在线转账
public class WireTransfer extends Payment {
    private String bankID;
    private String bankName;

    public WireTransfer(double amount, Order order, String bankID, String bankName) {
        super(amount, order);
        this.bankID = bankID;
        this.bankName = bankName;
    }

    @Override
    public boolean processPayment() {
        // 在线转账逻辑
        System.out.println("Processing wire transfer through bank: " + bankName);
        return true;
    }

    // Getter 方法
    public String getBankID() {
        return bankID;
    }

    public String getBankName() {
        return bankName;
    }
}
